package com.itheima.api;

import com.itheima.domain.Movement;
import com.itheima.vo.PageResult;

import java.util.List;

public interface MovementApi {
    void publish(Movement movement);
    PageResult findByUserId(Long userId, Integer page, Integer pagesize);

    List<Movement> getFriendMovements(Integer page, Integer pagesize, Long friendId);

    List<Movement> getRecommend( List<Long> pids);

    List<Movement> getRandom(int counts);

    Movement getMovementById(String id);
}
